package com.wht.media.controller;

import com.wht.media.service.ISnapService;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Inject;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.core.handle.Context;

/**
 * 截图接口
 *
 * @author by HaiTao.Wang on 2025/9/12.
 */
@Controller
@Mapping("snap")
public class SnapController {

    @Inject
    ISnapService iSnapService;


    /**
     * 获取截图
     *
     * @param url
     * @param context
     */
    @Mapping
    public void getSnap(String url, Context context) {
        iSnapService.getSnap(url, context);

    }
}
